package com.regentsoft.cloudback.enterpriseAdmin.vo.req;

import io.swagger.annotations.ApiModelProperty;
import org.springframework.web.multipart.MultipartFile;

/**
 * Created by work on 2017/11/29.
 *
 * @author lumr
 */
public class MediaUploadReq extends MediaBaseReq{
    @ApiModelProperty(notes = "文件大小")
    private long size;
    @ApiModelProperty(notes = "是否分片上传")
    private boolean append;
    @ApiModelProperty(notes = "分片上传时：文件token")
    private String fileToken;
    @ApiModelProperty(notes = "分片上传时：总块数")
    private int chunks;
    @ApiModelProperty(notes = "分片上传时：当前块数")
    private int chunk;
    @ApiModelProperty(notes = "文件名")
    private String name;
    @ApiModelProperty(notes = "显示给用户看的文件名")
    private String viewName;
    private MultipartFile file;


    public boolean isAppend() {
        return append;
    }

    public void setAppend(boolean append) {
        this.append = append;
    }

    public String getFileToken() {
        return fileToken;
    }

    public void setFileToken(String fileToken) {
        this.fileToken = fileToken;
    }

    public int getChunks() {
        return chunks;
    }

    public void setChunks(int chunks) {
        this.chunks = chunks;
    }

    public long getSize() {
        return size;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public int getChunk() {
        return chunk;
    }

    public void setChunk(int chunk) {
        this.chunk = chunk;
    }

    public MultipartFile getFile() {
        return file;
    }

    public void setFile(MultipartFile file) {
        this.file = file;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getViewName() {
        return viewName;
    }

    public void setViewName(String viewName) {
        this.viewName = viewName;
    }
}
